<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close" ng-click="editModal.close()">
        <span aria-hidden="true">×</span></button>
    <h4 class="modal-title">编辑商品</h4>
</div>
<div class="col-sm-12 modal-body">
    <div class="box-body">
        <form name="editForm">
            <div class="row">
                <div class="form-group col-sm-6">
                    <label>商品名称</label><label style="color:red;">*</label>
                    <input ng-required="true" placeholder="请输入商品名称" class="form-control" name="brandName"
                           ng-model="updateParam.name">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-sm-6">
                    <label>品牌名称</label><label style="color:red;">*</label>
                    <select ng-required="false" class="form-control" name="brandName"
                            ng-model="updateParam.brandId" ng-options="c.id as c.name for c in brandList">
                    </select>
                </div>
                <div class="form-group col-sm-6">
                    <label>分类名称</label><label style="color:red;">*</label>
                    <select ng-required="false" class="form-control" name="brandName"
                            ng-model="updateParam.kindId" ng-options="d.id as d.name for d in kindList">
                    </select>
                </div>
            </div>
            <div class="row">
                <div class="form-group col-sm-6">
                    <label>采购价格（元/单位）</label><label style="color:red;">*</label>
                    <input ng-required="true" placeholder="请输入采购价格" class="form-control" name="brandName"
                           ng-model="updateParam.purchasePrice">
                </div>
                <div class="form-group col-sm-6">
                    <label>销售价格（元/单位）</label><label style="color:red;">*</label>
                    <input ng-required="true" placeholder="请输入销售价格" class="form-control" name="brandName"
                           ng-model="updateParam.salesPrice">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-sm-6">
                    <label>商品单位</label><label style="color:red;">*</label>
                    <input ng-required="true" placeholder="请输入商品单位" class="form-control" name="unit"
                           ng-model="updateParam.unit">
                </div>
            </div>
            <div class="row">
                <div class="form-group col-sm-12">
                    <label>商品描述</label>
                    <textarea class="form-control" ng-model="updateParam.description"></textarea>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="modal-footer">
    <button type="submit" class="btn btn-primary" ng-click="updateCommodity()">
        保存
    </button>
    <button type="submit" class="btn btn-default pull-right"
            ng-click="editModal.close()">
        关闭
    </button>
</div>